import cv2
image=cv2.imread('figure.png')
cv2.imshow('BGR',image)
b,g,r=cv2.split(image)
bgr_merge=cv2.merge([b,g,r])
cv2.imshow('BGR_Merge',bgr_merge)
rgb_merge=cv2.merge([r,g,b])
cv2.imshow('RGB_Merge',rgb_merge)
cv2.waitKey()
cv2.destroyAllWindows()